package com.team.mail.authserver.feign;


import com.team.common.utils.R;
import com.team.mail.authserver.vo.SocialUser;
import com.team.mail.authserver.vo.UserLoginVo;
import com.team.mail.authserver.vo.UserRegisVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;



@FeignClient("mail-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegisVo vo);

    @PostMapping("/member/member/login")
    R login(UserLoginVo vo);


    @PostMapping("/member/member/oauth2/login")
    R oauth2Login(@RequestBody SocialUser user) throws Exception;
}
